<?php 
/* SVN FILE: $Id$ */
/* Movimiento Test cases generated on: 2009-03-26 08:03:34 : 1238051794*/
App::import('Model', 'Movimiento');

class MovimientoTestCase extends CakeTestCase {
	var $Movimiento = null;
	var $fixtures = array('app.movimiento', 'app.cuenta');

	function startTest() {
		$this->Movimiento =& ClassRegistry::init('Movimiento');
	}

	function testMovimientoInstance() {
		$this->assertTrue(is_a($this->Movimiento, 'Movimiento'));
	}

	function testMovimientoFind() {
		$this->Movimiento->recursive = -1;
		$results = $this->Movimiento->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Movimiento' => array(
			'id'  => 1,
			'cuenta_id'  => 1,
			'tipo'  => 1,
			'monto'  => 1,
			'created'  => '2009-03-26 08:16:34',
			'modified'  => '2009-03-26 08:16:34'
			));
		$this->assertEqual($results, $expected);
	}
}
?>